package com.jiajia;

/**
 *
 * 堆栈的demo ：
 *      方法的调用会放入堆栈中
 * @author : zjj
 * @date : 2022/4/25 10:35
 */
public class Demo00Stack {

    public static void main(String[] args) {
        Demo00Stack demo00Stack = new Demo00Stack();
        demo00Stack.method1();
    }

    public void method1(){
        int i = 10;
        int j = 20;
        method2();
    }

    public void method2(){
        System.out.println("方法b被调用");
    }
}
